﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using TalentPools.BLL;

/// <summary>
///AdminClass 的摘要说明
/// </summary>
public class AdminClass
{
    public AdminClass()
    {
        //
        //TODO: 在此处添加构造函数逻辑
        //
    }
    /// <summary>
    /// 判断CheckBox是否Checked
    /// </summary>
    /// <param name="name"></param>
    /// <param name="session">是否用Session来获得权限，否则用ID来获得权限</param>
    /// <returns></returns>
    public string getCheckBox(string name)
    {
        return new Admin_LoginManager().GetPurview(name);
    }
    #region 检查是否有权限
    /// <summary>
    /// 检查是否有权限
    /// </summary>
    /// <param name="name">当前用户名</param>
    /// <param name="s_purview">权限值</param>
    public bool Exists_Purview(string name, string s_purview)
    {
       return new Admin_LoginManager().Exists_Purview(name, s_purview);
    }
    #endregion
}